package com.atguigu.mybatis.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Data
public class Girl {

    private String name;
    private int age;

    @Autowired
    private Horse horse;

    public void actASMAn(){
        System.out.println("actASMAn...");
    }

    public void escapeFromHome(){
        System.out.println("escapeFromHome...");
    }
}
